package org.liuyunfeng;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author: TanJingyu
 * @create: 2022-08-17 17:04
 **/
@SpringBootApplication
public class SourceCodeReadApplication {
    public static void main(String[] args) {
        SpringApplication.run(SourceCodeReadApplication.class, args);
    }

    @Bean
    public Demo<Object> demo() {
        return new Demo<>();
    }


    @Bean
    public Hello hello() {
        Hello hello = new Hello();
        hello.setYes(new Yes());
        return hello;
    }

    public static class Demo<T> {

    }



    public static class Hello {
        private Yes yes;

        public Yes getYes() {
            return yes;
        }

        public void setYes(Yes yes) {
            this.yes = yes;
        }
    }

    public static class Yes{}
}

    